LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libz
LOCAL_SRC_FILES := ../libs/libz.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_CFLAGS += \
    -Wall \
    -Wextra \
#     -Werror \
    -Werror,-Wunused-parameter 

LOCAL_SRC_FILES := png.c \
    pngerror.c \
    pngget.c \
    pngmem.c \
    pngpread.c \
    pngread.c \
    pngrio.c \
    pngrtran.c \
    pngrutil.c \
    pngset.c \
    pngtrans.c \
    pngwio.c \
    pngwrite.c \
    pngwtran.c \
    pngwutil.c \

LOCAL_SRC_FILES += \
    arm/filter_neon_intrinsics.c \
    arm/palette_neon_intrinsics.c \
    arm/arm_init.c \

# LOCAL_LDLIBS  += \
    -lz

LOCAL_STATIC_LIBRARIES := \
    libz \

LOCAL_MODULE      := libpng
LOCAL_MODULE_TAGS := optional
# include $(BUILD_SHARED_LIBRARY)
include $(BUILD_STATIC_LIBRARY)
